import request from '../../../../../../public/js/common/api/api.js';

const EmployeeMgtUrl = Utils.CurDomain.EmployeeMgtUrl;
const _ajaxOptions = {
    contentType: 'application/json',
    dataType: 'json',
    async: true,
    dataFilter(data, type) {
        return data;
    }
};
export default class ContactAPI {
    /**
    * 员工查询
    */
    static queryEmployees(data) {
        let { searchInfo, pageIndex, pageSize, status } = data;
        const searchInfoParam = Utils.IsNotNull(searchInfo) ? `&SearchInfo=${searchInfo}` : '';

        return request.get(`${EmployeeMgtUrl}/emplrecds/by/q?pageSize=${pageSize}&pageIndex=${pageIndex}&status=${status || ""}${searchInfoParam}`);
    }
}